import axios from 'axios';

export const delDatabase = async (id) => {
    try {
        const response = await axios.delete(`http://localhost:65520/indices/${id}`);

        return response;
    } catch (error) {
        return {
            status: 1001,
            msg: '数据库不存在'
        };
    }
}
